﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using PH.Model.Schools;
using PH.Data.Schools;
namespace PH.Logic.Schools
{
    public class SchoolLogic
    {
        public static SchoolModel CreateNewSchool(SchoolModel school)
        {
            return SchoolCommand.CreateNewSchool(school);
        }

        public static void UpdateSchool(SchoolModel school)
        {
            SchoolCommand.UpdateSchool(school);
        }

        public static SchoolModel GetSchool(Guid guid)
        {
            return SchoolCommand.GetSchool(guid);
        }
        public static SchoolModel GetSchool(int id)
        {
            return SchoolCommand.GetSchool(id);
        }

        public static SchoolCollection GetSchools(SchoolQuery search)
        {
            return SchoolCommand.GetSchools(search);
        }

        public static void DeleteSchool(Guid guid)
        {
            SchoolCommand.DeleteSchool(guid);
        }

        public static List<int> GetSchoolIDs(int bureauID)
        {
            return SchoolCommand.GetSchoolIDs(bureauID);
        }

        public static void Remove(Guid guid)
        {
            SchoolCommand.Remove(guid);
        }
    }
}
